<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FiltronASP.Areas.Admin.ViewModels.PageGroups.PageGroupsEditionViewModel>" ValidateRequest="false" %>
<%@ Import Namespace="FiltronASP.Areas.Admin.Consts" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Nowa grupa stron
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% Html.BeginForm("CreateNewPageType", "PageGroups", FormMethod.Post, new {name = "pageTypeForm" }); %>
        <% Html.RenderPartial("PageTypeEditionFields"); %>
        <div class="right-page-buttons">
  			<span class="button2" onclick="document.forms['cancelNewPageTypeForm'].submit();">Anuluj</span> 
			<span class="button2" onclick="submitPrepared(document.forms['pageTypeForm']);">Zapisz</span> 
        </div>
    <% Html.EndForm(); %>

    <% Html.BeginForm("CancelNewPageType", "PageGroups", FormMethod.Post, new { name = "cancelNewPageTypeForm" }); %>
        <%= Html.HiddenFor(m => Model.PageTypeToOperateWith.page_type_id) %>
        <%= Html.HiddenFor(m => Model.PaginationPage) %>
        <% if (Model.CurrentLanguage != null) { %>
            <%= Html.HiddenFor(m => Model.CurrentLanguage.language_id) %>
        <% } //if lang %>
	<% Html.EndForm(); %>    
    
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
	Nowa grupa stron
</asp:Content>
